package com.starleague.hexagonal.flat;

import com.starleague.hexagonal.AbstractHexGrid;
import com.starleague.hexagonal.HexOutOfBoundsException;
import com.starleague.hexagonal.IHexCoordinate;

public abstract class AbstractFlatHexGrid
        extends AbstractHexGrid
        implements IFlatHexGrid
{
    protected AbstractFlatHexGrid(int minGridX,
                                  int minGridY,
                                  int numHexesX,
                                  int numHexesY)
    {
        super(minGridX, minGridY, numHexesX, numHexesY);
    }

    protected AbstractFlatHexGrid()
    {
        //
    }

    @Override
    public AbstractFlatHex getHexAt(IHexCoordinate hexCoordinate) throws HexOutOfBoundsException
    {
        return (AbstractFlatHex) super.getHexAt(hexCoordinate);
    }
}
